package net.cathackers.devel.scmp.chat.impl.xmpp;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;


public class XMPPProtocolCodecFactory implements ProtocolCodecFactory{
	private XMPPEncoder encoder_;
	private XMPPDecoder decoder_;
	
	public XMPPProtocolCodecFactory() {
		encoder_ = new XMPPEncoder();
		decoder_ = new XMPPDecoder();
	}
	@Override
	public ProtocolDecoder getDecoder(IoSession session) throws Exception {
		return decoder_;
	}

	@Override
	public ProtocolEncoder getEncoder(IoSession session) throws Exception {
		return encoder_;
	}
	
}
